{include file=member.header.html}
<style type="text/css">
.my_money .audit_css{ width:100%; padding:10px 0;overflow:hidden}
.my_money .audit_css h3{ color:#F00; font-size:22px}
.my_money .audit_css .audit_menu{ width:100%;}
.my_money .audit_css .audit_menu li{ float:left; padding-right:30px; font-size:13px;}
.my_money .audit_css .audit_menu li a{ color:#00F;padding:5px; display:block;text-decoration:none}
.my_money .audit_css .audit_menu li a:hover{ color:#F00; text-decoration:underline}
.my_money .audit_css .audit_menu li a.ck{ color:#FFF; padding:5px; background:#FF4F01}
.my_money .audit_css .audit_table{ margin-top:10px; border-top:2px #FF4F01 solid; background:#e1e1e1}
.my_money .audit_css .audit_table th{ font-weight:bold; line-height:180%;border:1px solid #e5e5e5;border-width:1px 1px 1px 1px;text-align:center; background:#f5f5f5}
.my_money .audit_css .audit_table td{ background:#FFF; padding:7px 5px;line-height:180%;border:1px solid #e5e5e5;border-width:1px 1px 1px 1px;text-align:center;}
.my_money .audit_css .audit_table strong{ color:#F00}
.my_money .audit_css .audit_table a{ color:#00F; text-decoration:none}
.my_money .audit_css .audit_table a:hover{ color:#F00; text-decoration:underline}
</style>
<script type="text/javascript">
$(function(){
    $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd',changeMonth: true, changeYear: true});
    $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd',changeMonth: true, changeYear: true});
});
</script>
<div class="content_color">
<div class="content">
  {include file=member.menu.html}
  <div id="right">
      {include file=member.submenu.html}
    <div class="wrap">
          <div class="public_select table">
          <div class="my_money">
          <div class="my_monye_info">
          <dl>
            <dt>您的会员账户：<strong>{$visitor.user_name|escape}</strong></dt><dt>可用金额为：<strong>{$lang.money_fuhao} {$money_money.money}</strong> {$lang.money_danwei}</dt><dt>冻结金额为：<strong>{$lang.money_fuhao} {$money_money.money_dj}</strong> {$lang.money_danwei}</dt></dl>
          <dl style="display:none"><dt>实名认证状态：<!--{if $money_money.rz_is_ok == 3}--><strong>通过认证</strong><!--{if $visitor.store_id}-->，您可以<img src="{res file=images/member/remit_pay_li.png}" width="17" height="16" align="absmiddle" /><a href="index.php?app=my_money&act=encash_bank">申请提现</a><!--{/if}--><!--{else}--><strong>尚未申请</strong>，您可以<img src="{res file=images/member/remit_pay_li.png}" width="17" height="16" align="absmiddle" /><a href="index.php?app=member&act=certificate">申请实名认证</a><!--{/if}--></dt></dl>
          </div>          
            <div class="audit_css">
<div class="user_search">
<form method="get">
    <span>收支类型:</span>
    <select name="type" onchange="location='index.php?app=my_money&type='+this.value+'{if $smarty.get.add_time_from}&add_time_from={$smarty.get.add_time_from}{/if}{if $smarty.get.add_time_to}&add_time_to={$smarty.get.add_time_to}{/if}';" class="select_class" style="height:27px;padding:3px;">
      <option value="" {if !$smarty.get.type}selected{/if}>全部收支</option>
      <option value="10" {if $smarty.get.type eq 10}selected{/if}>—订单收入</option>
      <option value="20" {if $smarty.get.type eq 20}selected{/if}>—订单支出</option>
      <option value="30" {if $smarty.get.type eq 30}selected{/if}>—网上充值</option>
      <option value="40" {if $smarty.get.type eq 40}selected{/if}>—银行充值</option>
      <option value="50" {if $smarty.get.type eq 50}selected{/if}>—帐户转入</option>
      <option value="51" {if $smarty.get.type eq 51}selected{/if}>—帐户支出</option>
    </select>&nbsp;&nbsp;
    <span>起止日期:</span>
    <input type="text" class="text_small" name="add_time_from" id="add_time_from" value="{$smarty.get.add_time_from}"/> &#8211;
    <input type="text" class="text_small" name="add_time_to" id="add_time_to" value="{$smarty.get.add_time_to}"/>
    <input type="hidden" name="app" value="my_money" />
    <input type="submit" class="formbtn" value="搜索" />
    <!--{if $smarty.get.type || $smarty.get.add_time_from}-->
    <input name="按钮" type="button" class="formbtn" value="取消条件" onclick="window.location.href='index.php?app=my_money'" style="color:#F00">
    <!--{/if}-->
</form>
</div>         
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="audit_table">
  <tr>
    <th>时间</th>
    <th>收入</th>
    <th>支出</th>
    <th>备注</th>
  </tr>
  <!--{foreach from=$my_money item=mymoney}-->
  <tr>
    <td>{$mymoney.add_time|date:Y-m-d H:i:s}</td>
    <td><strong>{$mymoney.money_sr|default:-}</strong></td>
    <td><strong>{$mymoney.money_zc|default:-}</strong></td>
    <td style="text-align:left">{$mymoney.log_text}</td>
  </tr>
  <!--{foreachelse}-->
  <tr>
      <td class="align2 member_no_records" colspan="4"><br />您的账户暂无收支明细<br /><br /></td>
  </tr>
  <!--{/foreach}-->
</table>
<div style="margin-top:8px; overflow:hidden; width:100%">
<div class="left">
<!--{if $money_total.money_sr_total}-->收入总计：<strong style="color:#F00">{$money_total.money_sr_total}</strong> {$lang.money_danwei}<!--{/if}-->&nbsp;&nbsp;&nbsp;&nbsp;
<!--{if $money_total.money_zc_total}-->支出总计：<strong style="color:#F00">{$money_total.money_zc_total}</strong> {$lang.money_danwei}<!--{/if}-->
</div>
<div class="right">
{include file=member.page.bottom.html}
</div>
</div>
</div>
            </div>        
          </div>
          </div>
      </div>
      <div class="clear"></div>
  </div>
    <div class="clear"></div>
<iframe name="iframe_post" id="iframe_post" width="0" height="0"></iframe>
</div>
{include file=footer_member.html}